import request from '@/utils/request'

// 查询考核点分页
export function pageDrop(query) {
  return request({
    url: '/examine/drop/page',
    method: 'get',
    params: query,
    factoryId:true,
  })
}

// 查询考核点列表
export function listDrop(query) {
  return request({
    url: '/examine/drop/list',
    method: 'get',
    params: query,
    factoryId:true
  })
}

// 查询考核点详细
export function getDrop(id) {
  return request({
    url: '/examine/drop/info/' + id,
    method: 'get'
  })
}

// 新增考核点
export function addDrop(data) {
  return request({
    url: '/examine/drop',
    method: 'post',
    data: data,
  })
}

// 修改考核点
export function updateDrop(data) {
  return request({
    url: '/examine/drop',
    method: 'put',
    data: data
  })
}

// 删除考核点
export function delDrop(data) {
  return request({
    url: '/examine/drop/remove/batch',
    method: 'delete',
    data
  })
}

// 导出考核点
export function exportDrop(query) {
  return request({
    url: '/examine/drop/export',
    method: 'get',
    params: query
  })
}

// 下载模板考核点
export function downImportTemplate() {
  return request({
    url: '/examine/drop/importTemplate',
    method: 'get'
  })
}